package com.njwb.day07;

public class Test接口多实现2 {
    public static void main(String[] args) {
        H h=new H();
        h.fn1();
        h.fn2();
    }
}

interface F{
    void fn1();
}

interface G{
    void fn2();
}

class H implements F,G{

    @Override
    public void fn1() {
        System.out.println("H.fn1");
    }

    @Override
    public void fn2() {
        System.out.println("H.fn2");
    }
}